package com.example.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.AnnouncementBeanItem
import com.example.main.R

class PublicAdapter:BaseQuickAdapter<AnnouncementBeanItem,BaseViewHolder>(R.layout.item_public) {
    override fun convert(helper: BaseViewHolder, item: AnnouncementBeanItem) {
        helper.setText(R.id.title,item.title)
        helper.setText(R.id.content,item.content)
        helper.setText(R.id.time,item.publishTime)
        helper.setText(R.id.action,item.status)
    }
}